package com.wsx.sky.gateway;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.feign.EnableFeignClients;
import org.springframework.context.annotation.ImportResource;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @author wangshuaixin
 * @Title: com.wsx.sky.gateway.GatewayApplication
 * @Description: TODO
 * @date 2018/12/07
 */
@SpringBootApplication(
        scanBasePackages = {"com.wsx.sky.*"}
)
@MapperScan(basePackages = {"com.wsx.sky.gateway.inner.dao"})
@EnableFeignClients
@ImportResource({"classpath:dubbo-client.xml"})
public class GatewayApplication {


    public static void main(String[] args) {

        SpringApplication application = new SpringApplication(GatewayApplication.class);

        application.run(args);
        System.out.println("-----------------------------");
        System.out.println(new SimpleDateFormat("[yyyy-MM-dd HH:mm:ss]").format(new Date()) + " GatewayApplication server started!");
        System.out.println("-----------------------------");
    }

}
